.class Lcom/waiqin365/lightapp/visit/aw;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/visit/b/s;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/aw;->a:Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Lcom/waiqin365/lightapp/visit/b/bd;)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/aw;->a:Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/aw;->a:Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;->n(Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I

    move-result v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;->b(Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;I)I

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/aw;->a:Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;->m(Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;)Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    if-eqz v1, :cond_0

    iget-object v1, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/am;->b:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    if-nez v1, :cond_1

    :cond_0
    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/kehu/b/am;-><init>()V

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->k:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->l:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->q:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->b:Ljava/lang/String;

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->o:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    iput-object v1, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    :cond_1
    const-string/jumbo v1, "customerInfo"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v1, "visitId"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "routeId"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->b:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "visitStatus"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->m:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "isFinished"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->Q:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "visitor"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->g:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "visitType"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->n:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/aw;->a:Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;

    const/16 v2, 0x66

    invoke-virtual {v1, v0, v2}, Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/aw;->a:Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/visit/RouteVisitManagerActivity;->overridePendingTransition(II)V

    return-void
.end method
